﻿<Page x:Class="Resn.WhuPub.WPFClientUI.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      Title="武汉大学出版社客户关系管理系统" Style="{StaticResource PageStyle}">
        <Page.Background>
                <ImageBrush ImageSource="/Resn.WhuPub.WPFClientUI;component/Resources/Pictures/bg.jpg" />
        </Page.Background>
        <Grid>
                <Grid>
                        <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid>
                                <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <TextBlock HorizontalAlignment="Left" Margin="6" Text="武汉大学出版社客户关系管理系统"
                                           VerticalAlignment="Center" FontSize="32"/>
                                <TextBlock HorizontalAlignment="Left" Margin="6" Grid.Row="1"
                                           Text="WuHan University Publisher CRM" VerticalAlignment="Top" FontSize="16"/>

                                <TextBlock Grid.Column="4" HorizontalAlignment="Right" Name="VersionTextBlock" Text="" VerticalAlignment="Top" Grid.ColumnSpan="2"  />

                                <Button Grid.Column="2" Content="图书业务"
                                        Style="{DynamicResource ButtonStyle}" Grid.RowSpan="2"
                                        VerticalAlignment="Bottom" 
                                        Click="InsideBusinessButton_OnClick"/>
                                <Button Grid.Column="3" Content="票据业务"
                                        Style="{DynamicResource ButtonStyle}" Grid.RowSpan="2"
                                        VerticalAlignment="Bottom" 
                                        Click="OutsideBusinessButton_OnClick"/>
                                <Button Grid.Column="4" Content="个人信息"
                                        Style="{DynamicResource ButtonStyle}" Grid.RowSpan="2"
                                        VerticalAlignment="Bottom" 
                                        Click="EmployeeBusinessButton_OnClick"/>
                                <Button Grid.Column="5" Content="系统管理"
                                        Style="{DynamicResource ButtonStyle}" Click="AdminBusinessButton_Click" Grid.RowSpan="2"
                                        VerticalAlignment="Bottom" Name="AdminButton" />

                                <Button Grid.Column="6" Content="退出系统"
                                        Style="{DynamicResource ButtonStyle}" Click="ExitButton_Click" Grid.RowSpan="2"
                                        VerticalAlignment="Bottom"/>
                        </Grid>
                        <Frame Content="Frame" Name="MainFrame" Margin="0" Grid.Row="1" NavigationUIVisibility="Hidden"
                               Source="/Resn.WhuPub.WPFClientUI;component/StartPage.xaml" />
                </Grid>

        </Grid>
</Page>